package com.lipi.mall.product.feign;

import com.lipi.common.to.SkuHasStockVO;
import com.lipi.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("ware")
public interface WareFeignService {

    /**
     * 传入skuId列表，查询各项sku对应的可用库存信息
     *
     * @param skuIds
     * @return
     */
    @RequestMapping("/ware/waresku/skuHasStock")
    R skuHasStock(@RequestBody List<Long> skuIds);
}
